<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">消息名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" class="layui-input" lay-reqtext="请输入消息名称" placeholder="请输入消息名称" value="{$row['name']|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" id="sort" name="sort" class="layui-input" lay-reqtext="请输入排序" placeholder="请输入排序" value="{$row['sort']|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户</label>
            <div class="layui-input-block">
                    <div class="layui-form-select" style="width: 200px">
                        <div class="layui-select-title">
                            <input type="text" data-name="name" class="layui-input aselect" placeholder="请输入用户" data-url="/admin/ajax/ajaxselect" autocomplete="off" data-contentid="uid" data-table="user" data-relationship="id">
                            <input name="uid" type="hidden" value="">
                            <i class="layui-edge"></i>
                        </div>
                        <dl id="uid" class="layui-anim layui-anim-upbit"><dd lay-value="" class="layui-select-tips" style="text-align: center"><i class="layui-icon layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop">请选择</i></dd></dl>
                    </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">消息内容</label>
            <div class="layui-input-block">
                <textarea name="content" class="layui-textarea" placeholder="请输入消息内容">{$row['content']|default=''}</textarea>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">消息图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="imgs" class="layui-input layui-col-xs6 imgs" placeholder="请上传消息图片" value="{$row['imgs']|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="imgs" data-upload-number="100" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" data-upload-number="100" id="select_imgs" data-upload-select="imgs" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">跳转地址</label>
            <div class="layui-input-block">
                <input type="text" id="href" name="href" class="layui-input" lay-reqtext="请输入跳转地址" placeholder="请输入跳转地址" value="{$row['href']|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">消息分类</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['type']['option'] as $key=>$vo}
                    <input name="type" value="{$key}" type="radio" title="{$vo}"  {if $key==$alldata['field']['type']['default']}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" class="switch" value="1" type="checkbox" lay-skin="switch" lay-text="开启|关闭" {if $alldata['field']['status']['default']==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>